﻿@using CoralNode.Core.Entity.Enums
@using CoralNode.MvcClient.Helper
@using Coralcode.Utils.Basic
@model IList<CoralNode.Core.Entity.Domains.Prototype.PrototypeDomain>
@{
    ViewBag.Title = "Edit";
}
@Html.IncludePage("CoralAdmin/prototype", "_Left", new { current = "prototype" })
<div id="pbody">
    <div class="extra">
        <div class="pbody_top">
            <span class="ico ico_setting_system"></span><span class="t t_c">内容设计&nbsp;&nbsp;/&nbsp;&nbsp;<b
                class=" t_small f_no">批量添加分类</b></span>
        </div>
        <div id="main">
             <div class="funsearch p_1 pl_2 pr_2 extra_normal border-bottom1">
                <a href="javascript:history.back()" class="ico ico_back btn f_r mt_0-5"></a>
            </div>
            <form id="spform" action="/m/prototype/batchCreateCategory" method="post" enctype="multipart/form-data">
                @if (@ViewBag.Msg != null)
                {
                    <div class="error_msg">
                        @ViewBag.Msg.Msg
                    </div>
                }
                 <div class="pt_1 slideswitch pl_2 pr_2" data-js="slideswitch">
                     <div class="switch_tab">
                        <span class="btn"><i class="ico ico_slideswitch_show"></i></span>主要信息
                    </div>
                    <div class="table_form form_main switch_cnt">
                        <div class="pl_2">
                            @Html.AntiForgeryToken()
                            @Html.ValidationSummary(true)
                            <table>
                                <tbody>
                                     <tr>
                            <th width="60">原型<span class="rq">*</span></th>
                            <td>
                                <div class="select_owner w_12-5 " data-meta="{name:'prototypeId',value:'@ViewBag.PrototypeId', btn:'<span class=\'ico ico_slide_down\'></span>' , clickbtn:'<span class=\'ico ico_slide_up\'></span>'}">
                            <ul>
                                @foreach (var item in ViewBag.PrototypeList)
                                {
                                    <li data-value="@item.Id">@item.Title</li>
                                }
                            </ul>
                        </div>
                            </td>
                        </tr>
                        <tr>
                            <th width="60">分类</th>
                            <td>
                                <textarea name="categories" class="w_39 h_12"></textarea>
                                 <div class="exp ml_1">以-表示深度，回车区分分类</div>
                            </td>
                        </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
                <div class="submitbox p_2 extra_normal">
                    <input type="submit" class="btn_1" value="提    交" />
                </div>
            </form>
        </div>
    </div>
</div>

